package cate.game.videohall.vo;

import cate.game.play.proce.play.PlayStory;
import cate.game.videohall.po.ReplayProfile;
import com.fasterxml.jackson.annotation.JsonProperty;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

import java.util.Date;

@NoteClass("ReplayProfileVO")
public class ReplayProfileVO {

	@NoteField(value = "录像唯一id")
	public String replayUid;

	@NoteField(value = "剧本故事")
	public PlayStory story;

	@NoteField(value = "A方选手阵容")
	public PlaySideSimpleVO a;

	@NoteField(value = "B方选手阵容")
	public PlaySideSimpleVO b;

	@NoteField(value = "胜利方")
	public byte winner;

	@NoteField(value = "录像生成日期")
	public Date createDate;

	@NoteField(value = "回合数")
	public int round;

	@NoteField(value = "最大回合数")
	public int roundMax;

	public ReplayProfileVO() {
	}

	public ReplayProfileVO(ReplayProfile rp) {
		this.replayUid = rp.replayUid;
		this.story = rp.story;
		this.a = new PlaySideSimpleVO(rp.a);
		this.b = new PlaySideSimpleVO(rp.b);
		this.winner = rp.winner;
		this.createDate = rp.createDate;
		this.round = rp.round;
		this.roundMax = rp.roundMax;
	}
}
